﻿using System;

namespace Close2Poco
{
    public class MapToAttribute : MappingAttribute
    {
        public MapToAttribute(string databaseColumnName)
        {
            ColumnName = databaseColumnName;
        }

        public readonly string ColumnName;

        internal override string GetMappingText()
        {
            return "Name=\"" + ColumnName + "\"";
        }
    }
}
